// 自定义dialog
import 'package:cloud_phone_manager/data/Data.dart';
import 'package:flutter/material.dart';

class AppManagerDialog extends Dialog {
  String title;
  String content;
  List<AppInfo> _appList = [];
  Function()? onClosed;
  Function(int malv,int size,int fps)? onConfirm;

  AppManagerDialog(
      {Key? key,
      required this.title,
      required this.onClosed,
      this.content = ""})
      : super(key: key);


  @override
  Widget build(BuildContext context) {

    return Material(
      type: MaterialType.transparency,
      child: Center(
          child: ClipRRect(
        borderRadius: BorderRadius.circular(10),
        child: Container(
          height: 600,
          width: 600,
          padding: const EdgeInsets.all(10),
          color: Colors.white,
          child: Column(
            children: <Widget>[
              Container(
                height: 545,
                padding: const EdgeInsets.all(10),
                width: MediaQuery.of(context).size.width,
                child: Column(
                  children: [

                  ],
                ),
              ),
              Row(
                children: [
                  Expanded(
                      flex: 1,
                      child: TextButton(
                        onPressed: () => {onClosed?.call()},
                        child: Text("取消"),
                      )),
                  Expanded(
                      flex: 1,
                      child: TextButton(
                        onPressed: () => {

                        },
                        child: Text("确认"),
                      ))
                ],
              )
            ],
          ),
        ),
      )),
    );
  }
}
